cmake_minimum_required(VERSION 2.8.3)
project(select_camera)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs genmsg)

## Declare ROS messages and services
add_message_files(FILES camera_index.msg)

## Generate added messages and services
generate_messages(DEPENDENCIES std_msgs)

## Declare a catkin package
catkin_package()

## Build talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})

add_executable(camera_talker src/camera_talker.cpp)
target_link_libraries(camera_talker ${catkin_LIBRARIES})
## add_dependencies(camera_talker beginner_tutorials_generate_messages_cpp)

add_executable(camera_selector src/camera_selector.cpp)
target_link_libraries(camera_selector ${catkin_LIBRARIES})
## add_dependencies(camera_selector beginner_tutorials_generate_messages_cpp)
